{% extends "base.html" %} {% load staticfiles %}
{% block title %} 注册|老鑫头の个人博客 {% endblock title %}
{% block content %}
    <div class="container">
        <div class="row">
            <div class="col-12">
                <br>
                <br>
                <form method="post" action="." style="text-align: center">
                    {% csrf_token %}
                    <!-- 账号 -->
                    <div class="form-group col-md-4" style="margin:0 auto;">
                        <label for="username">*用户名</label>
                        <input type="text" class="form-control"
                               id="username" name="username" required>
                    </div>
                    <br>
                    <!-- 邮箱 -->
                    <div class="form-group col-md-4" style="margin:0 auto;">
                        <label for="email">Email</label>
                        <input type="text" class="form-control"
                               id="email" name="email">
                    </div>
                    <br>
                    <!-- 密码 -->
                    <div class="form-group col-md-4" style="margin:0 auto;">
                        <label for="password">*设置密码</label>
                        <input type="password" class="form-control"
                               id="password" name="password" required>
                    </div>
                    <br>
                    <!-- 确认密码 -->
                    <div class="form-group col-md-4" style="margin:0 auto;">
                        <label for="password2">*确认密码</label>
                        <input type="password" class="form-control"
                               id="password2" name="password2" required>
                    </div>
                    <br>
                    <!-- 提交按钮 -->
                    <button type="submit" class="btn btn-danger">注册</button>
                    <br><br>
                    <div class="form-group col-md-4" style="margin:0 auto; font-size: 20px">
                        返回<a href="{% url 'userprofile:login' %}">登录</a>
                    </div>
                </form>
            </div>
        </div>
    </div>
{% endblock content %}